#ifndef REMOTECONTROLHANDLER_H
#define REMOTECONTROLHANDLER_H

#include <QObject>
#include <QHash>
#include <QList>
#include <QString>

class OSEventThread;

class RemoteControlHandler : public QObject
{
    Q_OBJECT
    explicit RemoteControlHandler(QObject *parent = 0);
public:

    static RemoteControlHandler &instance();
    void init();
    void quit();

private slots:

    void processKey(int key, int way);

private:
    bool createEvent(int code, int way,QObject **r, QEvent **e);

private:
    OSEventThread *m_task;
    QHash<int, int> m_keyMapper;
    QHash<int,QString> m_visibleStr;

    
};

#endif // REMOTECONTROLHANDLER_H
